package com.iotechn.unimall.data.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.iotechn.unimall.data.domain.TreeDetailsDO;
import org.apache.ibatis.annotations.Param;

import java.util.List;


/**
 * 租赁土地详情
 *
 * @author hct
 * @email 77802226@qq.com
 * @date 2020-07-15 20:27:55
 */
public interface TreeDetailsMapper extends BaseMapper<TreeDetailsDO> {

    List<TreeDetailsDO> selectByList(@Param("treeDetailNo") String treeDetailNo, @Param("treeId") Integer treeId, @Param("offset") Integer offset, @Param("limit") Integer limit);

    Long countOrder(@Param("treeDetailNo") String treeDetailNo, @Param("treeId") Integer treeId, @Param("offset") Integer offset, @Param("limit") Integer limit);

    Integer updateStatus(@Param("id")Long id,@Param("isTree") Integer isTree, @Param("originalIsTree") Integer originalIsTree);
}
